home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / sortsrc.arc / sortfile.h < prev    next >
C/C++ Source or Header  |  1989-03-06  |  1KB  |  41 lines

  1. /******************************************************************************
  2.  *                                                                            *
  3.  *   sortfile.h     version 1.0 of 22 Januari 1989    (C) L.J.M. de Wit 1989     *
  4.  *                                                                            *
  5.  * This software may be used and distributed freely if not used commercially  *
  6.  * and the originator (me) is mentioned in the source (just leave this 9 line *
  7.  * header intact).                                                            *
  8.  *                                                                            *
  9.  ******************************************************************************
  10.  *
  11.  * sortfile.h: external definitions for the sortfile stdio package.
  12.  *
  13.  * To enable the speeded up std I/O routines, the BESTIO symbol must be
  14.  * #define'd (with -dBESTIO in the LC1 compilation phase when using Lattice C)
  15.  * and sortfile used when linking.
  16.  * To use the standard stdio package, don't define BESTIO and don't link with
  17.  * sortfile.
  18.  */
  19.  
  20. #ifdef BESTIO
  21.  
  22. #define fopen  stopen
  23. #define fgets  stgets
  24. #define fputs  stputs
  25. #define fclose stclose
  26. #define setbuffer stbuffer
  27.  
  28. extern FILE *stopen();
  29. extern char *stgets();
  30. extern void stputs();
  31. extern void stbuffer();
  32. extern int  stclose();
  33. extern void bestio();
  34. extern void exit();
  35.  
  36. #else not BESTIO
  37.  
  38. #define bestio(s)
  39.  
  40. #endif BESTIO
  41.